-
Notifications
You must be signed in to change notification settings - Fork 7.6k
feat: parallel subtask #6478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
feat: parallel subtask #6478
Conversation
…eritance, command.execute.before hook Merges changes from anomalyco#6478: - Add parallel subtask execution via Promise.all() - Fix model inheritance for subtasks with parent context restoration - Add command.execute.before plugin hook for pre-execution logic - Improve model resolution with proper fallback chain: command frontmatter > agent model > session model > default model - Extend SubtaskPart schema with model, parentAgent, parentModel fields - Update task tool to use ctx.extra.model for model override Closes #225
…fixes (#229) * fix(opencode): restore variant field in session prompt API The variant field was accidentally removed during a cherry-pick that fixed plugin commands. This restores variant support in PromptInput, CommandInput, and the corresponding message/command handlers. * refactor(opencode): extract CORS logic to dedicated module Move CORS origin validation to cors.ts for better testability and add support for *.shuv.ai domain alongside *.opencode.ai. * feat(app): add server URL persistence and welcome screen for hosted environments - Persist active server selection across sessions (server.v4 storage) - Add WelcomeScreen for hosted environments when server connection fails - Add connection state machine (connecting/ready/needs_config/error) - Add hosted environment detection utilities * feat(app): improve review pane with width constraints and empty state - Add REVIEW_PANE constants for centralized width configuration - Enforce max review pane width ratio (33% of viewport) - Handle window resize to maintain width constraints - Add empty state UI when no files to review * refactor(app): reorder header buttons for better UX - Move Theme/Font pickers before Review and Terminal toggles - Add clarifying comments for button groups * feat: merge upstream PR anomalyco#6478 - parallel subtasks, model inheritance, command.execute.before hook Merges changes from anomalyco#6478: - Add parallel subtask execution via Promise.all() - Fix model inheritance for subtasks with parent context restoration - Add command.execute.before plugin hook for pre-execution logic - Improve model resolution with proper fallback chain: command frontmatter > agent model > session model > default model - Extend SubtaskPart schema with model, parentAgent, parentModel fields - Update task tool to use ctx.extra.model for model override Closes #225 --------- Co-authored-by: shuv <shuv@shuv.dev>
…eritance, command.execute.before hook Merges changes from anomalyco#6478: - Add parallel subtask execution via Promise.all() - Fix model inheritance for subtasks with parent context restoration - Add command.execute.before plugin hook for pre-execution logic - Improve model resolution with proper fallback chain: command frontmatter > agent model > session model > default model - Extend SubtaskPart schema with model, parentAgent, parentModel fields - Update task tool to use ctx.extra.model for model override Closes #225
dda0e54 to
c13fbc2
Compare
c65be9f to
16acfc8
Compare
16acfc8 to
720e58c
Compare
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
needs rework with new opencode fixes and addition (model inheritance by dbpolito and command execute before) EDIT: done |
When multiple subtasks are spawned, execute them concurrently using Promise.all instead of sequentially. Only adds one synthetic user message after all subtasks complete.
720e58c to
ff4ad5e
Compare
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
EDIT: This PR adds parallel susbtask ability and fix model priority. Now uses command file specified model before agent's configured model